<!DOCTYPE html>
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Samza {% if page.title %}- {{page.title}}{% endif %}</title>
    <link href='/css/ropa-sans.css' rel='stylesheet' type='text/css'/>
    <link href="/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="/css/main.css" rel="stylesheet"/>
    <link href="/css/syntax.css" rel="stylesheet"/>
    <link rel="icon" type="image/png" href="/img/samza-icon.png">
    <script src="/js/jquery-1.11.1.min.js"></script>
  </head>
  <body>
    <div class="wrapper">
      <div class="wrapper-content">

        <div class="masthead">
          <div class="container">
            <div class="masthead-logo">
              <a href="/" class="logo">samza</a>
            </div>
            <div class="masthead-icons">
              <div class="pull-right">
                <a href="/startup/download"><i class="fa fa-arrow-circle-o-down masthead-icon"></i></a>
                <a href="https://git-wip-us.apache.org/repos/asf?p=samza.git;a=tree" target="_blank"><i class="fa fa-code masthead-icon" style="font-weight: bold;"></i></a>
                <a href="https://twitter.com/samzastream" target="_blank"><i class="fa fa-twitter masthead-icon"></i></a>
                <!-- this icon only shows in versioned pages -->
                {% if page.url contains "versioned" %}
                  {% if site.version == "latest" %}
                    {% capture linkUrl %}{{page.url | replace:'versioned', site.latest-release | replace_first: '/', ''}}{% endcapture %}
                  {% else %}
                    {% capture linkUrl %}{{page.url | replace:'versioned', 'latest' | replace_first: '/', ''}}{% endcapture %}
                  {% endif %}
                  <a href="{{ site.baseurl }}/{{ linkUrl }}"><i id="switch-version-button"></i></a>
                  {% assign navLink = site.version %} <!-- links for the navigation bar -->
                {% else %}
                  {% assign navLink = site.latest-release %}
                {% endif %}

              </div>
            </div>
          </div><!-- /.container -->
        </div>

        <div class="container">
          <div class="menu">
            <h1><i class="fa fa-rocket"></i> Getting Started</h1>
            <ul>
              <li><a href="/startup/hello-samza/{{ navLink }}">Hello Samza</a></li>
              <li><a href="/startup/download">Download</a></li>
            </ul>

            <h1><i class="fa fa-book"></i> Learn</h1>
            <ul>
              <li><a href="/learn/documentation/{{ navLink }}">Documentation</a></li>
              <li><a href="/learn/documentation/{{ navLink }}/jobs/configuration-table.html">Configuration</a></li>
              <li><a href="/learn/documentation/{{ navLink }}/container/metrics-table.html">Metrics</a></li>
              <li><a href="/learn/documentation/{{ navLink }}/api/javadocs/">Javadocs</a></li>
              <li><a href="/learn/tutorials/{{ navLink }}">Tutorials</a></li>
              <li><a href="https://cwiki.apache.org/confluence/display/SAMZA/FAQ">FAQ</a></li>
              <li><a href="https://cwiki.apache.org/confluence/display/SAMZA/Apache+Samza">Wiki</a></li>
              <li><a href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=51812876">Papers &amp; Talks</a></li>
              <li><a href="http://blogs.apache.org/samza">Blog</a></li>
            </ul>

            <h1><i class="fa fa-comments"></i> Community</h1>
            <ul>
              <li><a href="/community/mailing-lists.html">Mailing Lists</a></li>
              <li><a href="/community/irc.html">IRC</a></li>
              <li><a href="https://issues.apache.org/jira/browse/SAMZA">Bugs</a></li>
              <li><a href="https://cwiki.apache.org/confluence/display/SAMZA/Powered+By">Powered by</a></li>
              <li><a href="https://cwiki.apache.org/confluence/display/SAMZA/Ecosystem">Ecosystem</a></li>
              <li><a href="/community/committers.html">Committers</a></li>
            </ul>

            <h1><i class="fa fa-code"></i> Contribute</h1>
            <ul>
              <li><a href="/contribute/contributors-corner.html">Contributor's Corner</a></li>
              <li><a href="/contribute/coding-guide.html">Coding Guide</a></li>
              <li><a href="/contribute/design-documents.html">Design Documents</a></li>
              <li><a href="/contribute/code.html">Code</a></li>
              <li><a href="/contribute/tests.html">Tests</a></li>
            </ul>

            <h1><i class="fa fa-history"></i> Archive</h1>
            <ul>
              <li><a href="/archive/index.html#latest">latest</a></li>
              <li><a href="/archive/index.html#11">0.11</a></li>
              <li><a href="/archive/index.html#10">0.10</a></li>
              <li><a href="/archive/index.html#09">0.9</a></li>
              <li><a href="/archive/index.html#08">0.8</a></li>
              <li><a href="/archive/index.html#07">0.7</a></li>
            </ul>
          </div>

          <div class="content">
            {{content}}
          </div>
        </div>

      </div><!-- /.wrapper-content -->
    </div><!-- /.wrapper -->

    <div class="footer">
      <div class="container">
        <!-- nothing for now. -->
      </div>
    </div>

  {% if page.url contains "versioned" %}
    <script>
      $( document ).ready(function() {
        if ( $.fn.urlExists( "/{{ linkUrl }}" ) ) {
          $("#switch-version-button").addClass("fa fa-history masthead-icon");
        }
      });

      /* a function to test whether the url exists or not */
      (function( $ ) {
        $.fn.urlExists = function(url) {
          var http = new XMLHttpRequest();
          http.open('HEAD', url, false);
          http.send();
          return http.status != 404;
        };
      }( jQuery ));
    </script>
  {% endif %}

    <!-- Google Analytics -->
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-43122768-1', 'apache.org');
      ga('send', 'pageview');

    </script>
  </body>
</html>
